﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace weighing
{
    /// <summary>
    /// 系统配制
    /// </summary>
    public class SystemConfig
    {

        public static SystemConfig Default
        {
            get
            {
                return new SystemConfig
                {
                    Debug = false,
                    SystemName = "称重管理系统",
                    ServerUrl = "",
                    OfficialServerUrl = "",
                    GovernmentServerUrl = "",
                    DefaultPassword = "123456",
                    DataRefreshInterval = 60,
                    CopyRight = "Copyright © 2024-2050"
                };
            }
        }

        /// <summary>
        /// 是否为调试 
        /// </summary>
        public bool Debug { get; set; }

        /// <summary>
        /// 应用系统名称
        /// </summary>
        public string SystemName { get; set; }

        /// <summary>
        /// 企业服务器地址
        /// </summary>
        public string ServerUrl { get; set; }
        /// <summary>
        /// 官方服务地址
        /// </summary>
        public string OfficialServerUrl { get; set; }

        /// <summary>
        /// 监管单位服务地址
        /// </summary>
        public string GovernmentServerUrl { get; set; }

        /// <summary>
        /// 默认密码
        /// </summary>
        public string DefaultPassword { get; set; }


        public string CopyRight { get; set; }

        /// <summary>
        /// 数据刷新的频率 秒
        /// </summary>
        public int DataRefreshInterval { get; set; }


        //不在这里设置 在激活码中控制

        /// <summary>
        ///  永久使用
        /// </summary>
        //public int NeverNoExpired { get; set; }
        /// <summary>
        /// 软件到期时间
        /// </summary>
        //public string ExpiredDate { get; set; }
    }
}
